package com.likersai.opon.scene.cultivation.service.req;


import com.likersai.opon.scene.cultivation.entity.ConfigRealm;

import lombok.Data;
import java.io.Serializable;
/**
 * (ConfigRealm) 保存入参
 *
 * @author sun.ye
 * @since 2024-10-07 01:47:47
 */
@Data
public class SaveConfigRealmReq implements Serializable {
    
    private static final long serialVersionUID = -59679554099472200L;

    /**
     * 主键
     */
    private Long id;
    /**
     * 境界名称
     */
    private String realmName;
    /**
     * 境界编码
     */
    private String realmCode;
    /**
     * 境界描述
     */
    private String realmDesc;
    /**
     * 突破需要气
     */
    private Integer qiThreshold;
    /**
     * 境界类型，REALM修真境界
     */
    private String realmType;
    /**
     * 状态
     */
    private Boolean status;

    public ConfigRealm toEntity(){
        ConfigRealm entity = new ConfigRealm();
        
        entity.setId(this.getId());
        entity.setRealmName(this.getRealmName());
        entity.setRealmCode(this.getRealmCode());
        entity.setRealmDesc(this.getRealmDesc());
        entity.setQiThreshold(this.getQiThreshold());
        entity.setRealmType(this.getRealmType());
        entity.setStatus(this.getStatus());
        
        return entity;
    }

}

